SureCart\Models\Subscription B

Total Complexity 89
Dependencies 7
Dependents 9
Total lines 639
Lines of code 341
Logical lines of code 154
Comment lines 190
Methods 31
Properties 2

Methods 31

Method Rating Maintainability Complexity Lines of code
cancel()
S
47 6 37
restore()
S
50 6 29
renew()
S
50 5 30
complete()
S
51 5 29
upcomingPeriod()
S
51 5 28
update()
S
51 5 26
preserve()
S
52 5 25
payOff()
S
52 5 25
checkIfCanBeSwitched()
S
59 5 15
shouldDelayCancellation()
S
59 4 13
checkIfCanBeCanceled()
S
65 3 9
getRemainingPeriodTextAttribute()
S
62 2 14
getAffiliationExpiresAtDateTimeAttribute()
S
78 2 3
getTrialEndAtAtDateTimeAttribute()
S
78 2 3
getAdHocDisplayAmountAttribute()
S
78 2 3
isLifetime()
S
78 2 3
checkIfCanUpdateQuantity()
S
71 2 6
getAffiliationExpiresAtDateAttribute()
S
78 2 3
getCurrentPeriodStartAtDateAttribute()
S
78 2 3
getCurrentPeriodEndAtDateAttribute()
S
78 2 3
getCurrentPeriodEndAtDateTimeAttribute()
S
78 2 3
getStartAtDateAttribute()
S
78 2 3
getEndAtDateAttribute()
S
78 2 3
getEndedAtDateAttribute()
S
78 2 3
getRestoreAtDateAttribute()
S
78 2 3
getTrialEndAtDateAttribute()
S
78 2 3
setCurrentPeriodAttribute()
S
79 1 3
stats()
S
75 1 4
canBeCanceled()
S
79 1 3
canBeSwitched()
S
79 1 3
canUpdateQuantity()
S
79 1 3